package cn.com.blueInfo.bpm.person.request;

import cn.com.blueInfo.bpm.common.request.BaseDTO;
import cn.com.blueInfo.bpm.common.request.BaseQueryDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 岗位定义表 接收参数机校验
 * @author suxch
 * @since 2025-08-24 01:39:52
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "岗位定义 接收参数及校验")
public class PostDefDTO extends BaseDTO {

    /** 岗位编码 */
    @NotBlank(message = "岗位编码 不能为空")
    @Schema(description = "岗位编码")
    private String postCode;
    /** 岗位名称 */
    @NotBlank(message = "岗位名称 不能为空")
    @Schema(description = "岗位名称")
    private String postName;
    /** 岗位描述 */
    @Schema(description = "岗位描述")
    private String postDesc;

    /**
     * 岗位定义 接收分页查询参数
     * @author suxch
     * @since 2025-08-21 05:08:55
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    @Schema(description = "岗位定义 接收分页查询参数")
    public static class QueryDTO extends BaseQueryDTO {

        /** 岗位编码 */
        @Schema(description = "岗位编码")
        private String postCode;
        /** 岗位名称 */
        @Schema(description = "岗位名称")
        private String postName;
        /** 岗位描述 */
        @Schema(description = "岗位描述")
        private String postDesc;

    }

    /**
     * 岗位定义 接收部分更新参数及校验
     * @author suxch
     * @since 2025-08-21 05:08:55
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    @Schema(description = "岗位定义 接收部分更新参数及校验")
    public static class UpdatePartialDTO extends BaseDTO {

        /** 岗位描述 */
        @Schema(description = "岗位描述")
        private String postDesc;

    }

}